import request from '@/utils/request'

export function fetchList(query) {
    return request({
        url: '/Hy/getList',
        method: 'get',
        params: query
    })
}

export function createArticle(data) {
    return request({
        url: '/Hy/getAdd',
        method: 'post',
        data
    })
}

export function getDel(data) {
    return request({
        url: '/Hy/getDel',
        method: 'post',
        data
    })
}
//修改用户信息
export function updateArticle(data) {
    return request({
        url: '/Hy/getEdit',
        method: 'post',
        data
    })
}
//获取招标分类
export function getClist(data) {
    return request({
        url: '/Hy/getclist',
        method: 'post',
        data
    })
}

//根据id
export function getListAll(data) {
    return request({
        url: '/Hy/getListAll',
        method: 'post',
        data
    })
}